/**
 * @p.md
 * 
 * WASM 模块，提供 TypeScript 和 Go 代码之间的互操作功能
 */

/**
 * ProtoActor WASM 模块 - 提供与 Go 版本的 ProtoActor 的集成
 */

// 导出 WASM 桥接功能
export * from './wasmBridge';

// 导出 Actor 桥接功能
export * from './actorBridge';

// 导出 WASM 事件系统
export * from './wasmEvents';

// 导出 WASM 持久化功能
export { 
  WasmPersistenceProvider, 
  WasmPersistenceProviderImpl, 
  WasmPersistenceFactory,
  PersistedEvent,
  Snapshot
} from './wasmPersistence';

// 导出 WASM 远程通信功能
export { 
  WasmRemotingService, 
  WasmRemotingFactory, 
  createRemotePID,
  MessageHeader,
  RemoteMessage
} from './wasmRemoting';

// 导出 WASM 集群功能
export {
  WasmClusterService,
  WasmClusterServiceImpl,
  WasmClusterFactory,
  ClusterNode,
  NodeStatus,
  MembershipEvent,
  MembershipEventType,
  ClusterSeed,
  ClusterConfig,
  ClusterEventListener
} from './wasmCluster';

// 导出示例函数
export { runWasmExample, runProtoActorGoWasmExample } from '../examples/wasm-demo';
export { runClusterExample } from './examples/clusterExample'; 